package com.example.app2.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "app1", configuration = {FeignRequestInterceptor.class, ResultFeignDecoder.class})
public interface App1FeignClient {

    @GetMapping("/hello")
    String hello(@RequestParam(name = "name") String name);

    @PostMapping("/audit")
    String audit();
}
